"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
exports.__esModule = true;
/**
 * @description 插入表情
 * @author liuwe
 */
var dom_core_1 = require("wangeditor/dist/utils/dom-core");
var PanelMenu_1 = require("wangeditor/dist/menus/menu-constructors/PanelMenu");
var Panel_1 = require("wangeditor/dist/menus/menu-constructors/Panel");
var create_panel_conf_1 = require("./create-panel-conf");
var Emoticons = /** @class */ (function (_super) {
    __extends(Emoticons, _super);
    function Emoticons(editor) {
        var _this = this;
        var $elem = dom_core_1["default"]("<div class=\"w-e-menu\">\n                <i class=\"w-e-icon-happy\"></i>\n            </div>");
        _this = _super.call(this, $elem, editor) || this;
        return _this;
    }
    /**
     * 创建 panel
     */
    Emoticons.prototype.createPanel = function () {
        var conf = create_panel_conf_1["default"](this.editor);
        var panel = new Panel_1["default"](this, conf);
        panel.create();
    };
    /**
     * 菜单表情点击事件
     */
    Emoticons.prototype.clickHandler = function () {
        this.createPanel();
    };
    Emoticons.prototype.tryChangeActive = function () {
    };
    return Emoticons;
}(PanelMenu_1["default"]));
exports["default"] = Emoticons;
